package cn.itsource.pojo.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


@Data
@Builder
@AllArgsConstructor//有参
@NoArgsConstructor//无参
public class OrderFeeCalResult {

    //"基础里程（公里）"
    private BigDecimal baseMileage;

    //"基础里程价格"
    private BigDecimal baseMileageAmount;

    //"超出基础里程每公里价格"
    private BigDecimal exceedBaseMileageEveryKmAmount;

    // "超出基础里程多少公里"
    private BigDecimal exceedBaseMileage;

    // "超出基础里程的价格"
    private BigDecimal exceedBaseMileageAmount;

    // "里程费(基础+超出)"
    private BigDecimal mileageAmount;

    //"返程里程(等于订单里程)"
    private BigDecimal returnMileage;

    // "返程费免费公里数"
    private BigDecimal freeBaseReturnMileage;

    // "超出免费返程公里数，每公里收取的费用"
    private BigDecimal exceedBaseReturnEveryKmAmount;

    //"超出免费返程部分的里程"
    private BigDecimal exceedFreeBaseReturnMileage;

    //返程费(超出公里*每公里价格)"
    private BigDecimal returnAmont = BigDecimal.ZERO;

    public BigDecimal getTotalAmount(){
        return mileageAmount.add(returnAmont);
    }
}
